<template>
  <div class="box">
    <!-- 闪屏 -->
    <!-- <splash-screen></splash-screen> -->
    <div class="df aic jsb fww">
      <div class="item" @click="linkCus">
        <van-icon class="icon mainColor" name="friends" />
        <div>客户信息</div>
      </div>
      <div class="item" @click="linkProcess">
        <van-icon class="icon mainColor" name="youzan-shield" />
        <div>操作流程</div>
      </div>
      <div class="item" @click="linkPro">
        <van-icon class="icon mainColor" name="gem" />
        <div>项目报表</div>
      </div>
      <!-- <div class="item" @click="linkRecord">
        <van-icon class="icon mainColor" name="bars" />
        <div>抽脂记录</div>
      </div> -->
      <div class="item" @click="linkNotice">
        <van-icon class="icon mainColor" name="smile-comment" />
        <div>运输通知单</div>
      </div>
    </div>
  </div>
</template>
<script>
import splashScreen from '@/components/splashScreen'
import { getDics } from '@/api'
import mSelect from '@/components/m_select'
export default {
  data () {
    return {
      data: []
    }
  },
  components: {
    splashScreen,
    mSelect
  },

  methods: {
    linkPro () {
      wx.showToast({
        title: '暂未开通',
        icon: 'none',
        duration: 2000
      })
      // const url = '../project/main'
      // wx.navigateTo({ url })
    },
    linkCus () {
      const url = '../customer/main'
      wx.navigateTo({ url })
    },
    linkProcess () {
      const url = '../process/main'
      wx.navigateTo({ url })
    },
    linkRecord () {
      const url = '../cz_record/main'
      wx.navigateTo({ url })
    },
    linkNotice () {
      const url = '../notice/main'
      wx.navigateTo({ url })
    }
  },
  async onShow () {
    console.log(21221)
    let result = await getDics()
    wx.setStorageSync('dics', JSON.stringify(result.data))
  },
  onShareAppMessage (res) {
    return {
      title: '如是美助手',
      path: '/pages/index/main'
    }
  }
}
</script>

<style scoped>
  .box{text-align: center;padding: 100rpx;}
  .item{width: 36%;margin-bottom: 50rpx;font-size: 36rpx;padding: 30rpx 20rpx;box-shadow: 0 0 10px #2f74ff;}
  .icon{font-size: 100rpx;}
</style>
